package com.fdd.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAdvise {

    @Pointcut("execution(void com.fdd.dao.BookDao.update())")
    private void point(){};

    @Before("point()")
    public void method1(){
        System.out.println(System.currentTimeMillis());
    }
}
